<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><s:text name="shangjiaguanli"/></title>
<link href="<s:url value="/css/style.css"/>" rel="stylesheet" type="text/css" />
<link href="<s:url value="/css/admin.css"/>" rel="stylesheet" type="text/css" />
<script src="<s:url value="/js/jquery.js"/>" type="text/javascript"></script>
</head>
<body>

<div class="container">
	<div class="title">订单信息</div>
	<div class="content">
			<table class="tab1">
				<tbody>
					<tr>
						<td width="120">购买商品</td>
						<td>
							${order.tuangou.name}
						</td>
					</tr>
					<tr>
						<td>联系方式</td>
						<td>
							${order.user.phone}
						</td>
					</tr>
					<s:if test="order.delivery != null">
						<tr>
							<td>真实姓名</td>
							<td>
								${order.delivery.username}
							</td>
						</tr>
						<tr>
							<td>邮政编码</td>
							<td>
								${order.delivery.postal}
							</td>
						</tr>
						<tr>
							<td>收件地址</td>
							<td>
								${order.delivery.street}
							</td>
						</tr>
						<tr>
							<td>收件人联系方式</td>
							<td>
								${order.delivery.phone}
							</td>
						</tr>
					</s:if>
					<s:else>
					</s:else>
				</tbody>
			</table><br/>
			<s:if test="order.delivery == null">
			<form action="" method="post">
				<table class="tab1">
					<tbody>
						<tr>
							<td width="120">联系方式</td>
							<td>
								<s:textfield name="" value="%{order.user.phone}" />
							</td>
						</tr>
						<tr>
							<td></td>
							<td>
								<s:submit value="发送短消息"/>
							</td>
						</tr>
					</tbody>
				</table>
			</form>
			</s:if>
			<s:else>
			<form action="" method="post">
				<table class="tab1">
					<tbody>
						<tr>
							<td width="120">物流公司</td>
							<td>
								<s:textfield name=""  />
							</td>
						</tr>
						<tr>
							<td width="120">快递单号</td>
							<td>
								<s:textfield name=""  />
							</td>
						</tr>
						<tr>
							<td></td>
							<td>
								<s:submit value="提交"/>
							</td>
						</tr>
					</tbody>
				</table>
			</form>
			</s:else>
	</div>
</div>



</body>
</html>
